package cn.edu.njtc.entity.vo;


import cn.edu.njtc.entity.pojo.User;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
/**
 * 类和类之间的关系：继承、聚合、依赖
 * 继承：A extends B
 * 聚合：一个类A的成员字段的类型是B
 * 依赖：一个类A的成员方法参数的类型是B
 */
public class UserVo implements Serializable {
    /**
     * 利用聚合关系，将User和UserDetail聚合到UserVo
     *
     */
    private Integer id;
    private String name;
    private String phone;
    private LocalDateTime created;
    private LocalDateTime updated;
    private Boolean deleted;
}
